package pers.zc.activiti.shejimoshi.zhuangtai.type;

import pers.zc.activiti.shejimoshi.zhuangtai.node.Node;

/**
 * @Annotion: 开始
 * @ClassName: TypeA
 * @Author: Lin Fuyuan
 * @Date: 2019/11/16  19:27
 * @Version: 1.0
 */
public class TypeStart extends Type {
    private String status = null;
    private String date = null;

    public String getStatus() {
        return status;
    }
    public String getDate() {
        return date;
    }


    public static String result(){
        return "启动";
    }
    @Override
    public void run(Node node) {
        System.out.println("start");
        if(node.getType().equals("正常")){
            node.setType(new TypeRunning());
        }else{
            node.setType(new TypeFiled());
        }

    }
}
